Finds the record and extends it with provided object.

<div class="definition">
    set([recid], record, [noRefresh])
</div>

<div class="arguments">
    <table>
    <tr>
        <td>recid</td>
        <td><b>string</b>, <i>optional</i>, id of the record</td>
    </tr>
    <tr>
        <td>record</td>
        <td><b>object</b>, record object</td>
    </tr>
    <tr>
        <td>noRefresh</td>
        <td><b>boolean</b>, <i>optional</i>, indicates if record does not need to be updated on screen</td>
    </tr>
    </table>
</div>

Returns boolean.

<h4>Description</h4>

This method will update the record in the <a class="property" href="w2grid.records">.records</a> array and refresh it on the screen
(assuming if noRefresh is not provided). The record is identified by the <span class="property">.recid</span> property of the record
object, however, if not supplied, it will update all records. The second argument <span class="argument">record</span> is the record
object. The method returns true is at least one record was updated or false otherwise.
<div style="height: 10px"></div>

If you have grid defined in the following way:
<textarea class="javascript">
let grid = new w2grid({
    name    : 'grid',
    columns: [
        { field: 'recid', text: 'ID', size: '50px' },
        { field: 'lname', text: 'Last Name', size: '30%' },
        { field: 'fname', text: 'First Name', size: '30%' },
        { field: 'email', text: 'Email', size: '40%' },
        { field: 'sdate', text: 'Start Date', size: '120px' },
        { field: 'sdate', text: 'End Date', size: '120px' }
    ],
    records: [
        { recid: 1, fname: 'John', lname: 'doe', email: 'vitali@gmail.com', sdate: '1/3/2012' },
        { recid: 2, fname: 'Stuart', lname: 'Motzart', email: 'jdoe@gmail.com', sdate: '2/4/2012' },
        { recid: 3, fname: 'Jin', lname: 'Franson', email: '--', sdate: '4/23/2012' },
        { recid: 4, fname: 'Susan', lname: 'Ottie', email: 'jdoe@gmail.com', sdate: '5/3/2012' },
        { recid: 5, fname: 'Kelly', lname: 'Silver', email: 'jdoe@gmail.com', sdate: '4/3/2012' },
        { recid: 6, fname: 'Francis', lname: 'Gatos', email: 'vitali@gmail.com', sdate: '2/5/2012' }
    ]
});
</textarea>

You can update record with recid = 2:
<textarea class="javascript">
grid.set(2, { fname: 'Not Suart', lname: 'Unknown' });
</textarea>

Or you can update one parameter in all records:
<textarea class="javascript">
grid.set({ fname: 'none' });
</textarea>

Please note that the record is not replaced with <span class="argument">record</span>, but extended using
<span class="argument">$.extend()</span> method.